.class final Lcom/nostra13/universalimageloader/core/b;
.super Ljava/lang/Object;
.source "DisplayBitmapTask.java"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field private final a:Landroid/graphics/Bitmap;

.field private final b:Ljava/lang/String;

.field private final c:Les/qg0;

.field private final d:Ljava/lang/String;

.field private final e:Les/ng0;

.field private final f:Les/ug0;

.field private final g:Lcom/nostra13/universalimageloader/core/f;

.field private final h:Lcom/nostra13/universalimageloader/core/assist/LoadedFrom;


# direct methods
.method public constructor <init>(Landroid/graphics/Bitmap;Lcom/nostra13/universalimageloader/core/g;Lcom/nostra13/universalimageloader/core/f;Lcom/nostra13/universalimageloader/core/assist/LoadedFrom;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/b;->a:Landroid/graphics/Bitmap;

    .line 3
    iget-object p1, p2, Lcom/nostra13/universalimageloader/core/g;->a:Ljava/lang/String;

    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/b;->b:Ljava/lang/String;

    .line 4
    iget-object p1, p2, Lcom/nostra13/universalimageloader/core/g;->c:Les/qg0;

    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    .line 5
    iget-object p1, p2, Lcom/nostra13/universalimageloader/core/g;->b:Ljava/lang/String;

    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/b;->d:Ljava/lang/String;

    .line 6
    iget-object p1, p2, Lcom/nostra13/universalimageloader/core/g;->e:Lcom/nostra13/universalimageloader/core/c;

    invoke-virtual {p1}, Lcom/nostra13/universalimageloader/core/c;->c()Les/ng0;

    move-result-object p1

    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/b;->e:Les/ng0;

    .line 7
    iget-object p1, p2, Lcom/nostra13/universalimageloader/core/g;->f:Les/ug0;

    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/b;->f:Les/ug0;

    .line 8
    iput-object p3, p0, Lcom/nostra13/universalimageloader/core/b;->g:Lcom/nostra13/universalimageloader/core/f;

    .line 9
    iput-object p4, p0, Lcom/nostra13/universalimageloader/core/b;->h:Lcom/nostra13/universalimageloader/core/assist/LoadedFrom;

    return-void
.end method

.method private a()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/b;->g:Lcom/nostra13/universalimageloader/core/f;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/f;->b(Les/qg0;)Ljava/lang/String;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->d:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method


# virtual methods
.method public run()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    invoke-interface {v0}, Les/qg0;->isCollected()Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_0

    new-array v0, v2, [Ljava/lang/Object;

    .line 2
    iget-object v2, p0, Lcom/nostra13/universalimageloader/core/b;->d:Ljava/lang/String;

    aput-object v2, v0, v1

    const-string v1, "ImageAware was collected by GC. Task is cancelled. [%s]"

    invoke-static {v1, v0}, Les/ah0;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 3
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/b;->f:Les/ug0;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    invoke-interface {v2}, Les/qg0;->getWrappedView()Landroid/view/View;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Les/ug0;->onLoadingCancelled(Ljava/lang/String;Landroid/view/View;)V

    goto :goto_0

    .line 4
    :cond_0
    invoke-direct {p0}, Lcom/nostra13/universalimageloader/core/b;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    new-array v0, v2, [Ljava/lang/Object;

    .line 5
    iget-object v2, p0, Lcom/nostra13/universalimageloader/core/b;->d:Ljava/lang/String;

    aput-object v2, v0, v1

    const-string v1, "ImageAware is reused for another image. Task is cancelled. [%s]"

    invoke-static {v1, v0}, Les/ah0;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 6
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/b;->f:Les/ug0;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    invoke-interface {v2}, Les/qg0;->getWrappedView()Landroid/view/View;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Les/ug0;->onLoadingCancelled(Ljava/lang/String;Landroid/view/View;)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/Object;

    .line 7
    iget-object v3, p0, Lcom/nostra13/universalimageloader/core/b;->h:Lcom/nostra13/universalimageloader/core/assist/LoadedFrom;

    aput-object v3, v0, v1

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->d:Ljava/lang/String;

    aput-object v1, v0, v2

    const-string v1, "Display image in ImageAware (loaded from %1$s) [%2$s]"

    invoke-static {v1, v0}, Les/ah0;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 8
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/b;->e:Les/ng0;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->a:Landroid/graphics/Bitmap;

    iget-object v2, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    iget-object v3, p0, Lcom/nostra13/universalimageloader/core/b;->h:Lcom/nostra13/universalimageloader/core/assist/LoadedFrom;

    invoke-interface {v0, v1, v2, v3}, Les/ng0;->a(Landroid/graphics/Bitmap;Les/qg0;Lcom/nostra13/universalimageloader/core/assist/LoadedFrom;)V

    .line 9
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/b;->g:Lcom/nostra13/universalimageloader/core/f;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/f;->a(Les/qg0;)V

    .line 10
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/b;->f:Les/ug0;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/b;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/nostra13/universalimageloader/core/b;->c:Les/qg0;

    invoke-interface {v2}, Les/qg0;->getWrappedView()Landroid/view/View;

    move-result-object v2

    iget-object v3, p0, Lcom/nostra13/universalimageloader/core/b;->a:Landroid/graphics/Bitmap;

    invoke-interface {v0, v1, v2, v3}, Les/ug0;->a(Ljava/lang/String;Landroid/view/View;Landroid/graphics/Bitmap;)V

    :goto_0
    return-void
.end method
